---
title: Managing your profile settings
redirect_from:
  - /getting-started/modifying_your_profile_from_command_line
---

import shared from '~/shared.js'

You can manage settings for your user account profile from the web or command line.

## Managing user account profile settings from the web

From the web, you can change the following user profile settings:

- Avatar
- Password
- Full name
- Link GitHub Account
- Link Twitter Account
- Email address added to package metadata
- Two-factor authentication status

1. <>{shared['user-login'].text}</>

   <>{shared['user-login'].image}</>

2. <>{shared['account-settings'].text}</>

   <>{shared['account-settings'].image}</>

### Linking your npm and GitHub accounts

1. On the account settings page, you will find a button to link your GitHub account. Click that.

   <Screenshot src="/getting-started/managing-your-npm-user-account/connect-github.png" alt="Screenshot of linking from Account Setting without any accounts linked" />

2. If you are not currently logged in to GitHub you will be prompted to go through the authentication flow.

   <Screenshot src="/getting-started/managing-your-npm-user-account/github-login.png" alt="GitHub login form" />

3. After successfully logging in, or if you already had an active browser sessions, you will be prompted to "authorize npm account link", click the button.

   <Screenshot src="/getting-started/managing-your-npm-user-account/github-authorize.png" alt="Landing page to authorize the installation of the npm account linking app" />

4. You will be redirected to npm and the link will show as successful in your settings.

   <Screenshot src="/getting-started/managing-your-npm-user-account/github-success.png" alt="Screenshot of linking from Account Setting with successfully linked GitHub account" />

### Linking your npm and Twitter accounts

1. On the account settings page, you will find a button to link your Twitter account. Click that.

   <Screenshot src="/getting-started/managing-your-npm-user-account/connect-twitter.png" alt="Screenshot of linking from Account Setting without any accounts linked" />

2. If you are not currently logged in to Twitter you will be prompted to go through the authentication flow. Click "Log in"

   <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-login.png" alt="Twitter login form" />

3. After successfully logging in, or if you already had an active browser sessions, you will be prompted to "Authorize app", click the button.

   <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-authorize.png" alt="Landing page to authorize the installation of the npm account linking app" />

4. You will be redirected to npm and the link will show as successful in your settings.

   <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-success.png" alt="Screenshot of linking from Account Setting with successfully linked Twitter account" />

### Removing your GitHub account from npm

1. On the account settings page, you will find a button to remove your GitHub account. Click that.

   <Screenshot src="/getting-started/managing-your-npm-user-account/github-remove.png" alt="Screenshot of linking from Account Setting with a cursor hovering over remove button" />

   _Note: Clicking remove will only remove the link from your npm account. You need to `revoke` permissions from your [GitHub app authorization settings](https://github.com/settings/apps/authorizations) to permanently remove the integration from your GitHub account_

### Removing your Twitter account from npm

1. On the account settings page, you will find a button to remove your GitHub account. Click that.

   <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-remove.png" alt="Screenshot of linking from Account Setting with a cursor hovering over remove button" />

   _Note: Clicking remove will only remove the link from your npm account. You need to `revoke` permissions from your [Twitter connect apps management page](https://twitter.com/settings/connected_apps) to permanently remove the integration from your Twitter account_

## Managing user account profile settings from the command line

<Note>

**Note:** Your npm client must be version 5.5.1 or higher to change your account settings from the CLI. To update to the latest version of npm, on the command line, run `npm install npm@latest -g`

</Note>

### Viewing user account profile settings from the command line

To view your user profile settings from the CLI, on the command line, run the following command:

```
npm profile get
```

<Screenshot src="/getting-started/managing-your-npm-user-account/profile-settings-cli.png" alt="Screenshot of command-line interface profile settings table" />

### Updating user account profile settings from the command line

From the CLI, you can change the following properties for your user account:

- `email`
- `two-factor auth`
- `fullname`
- `homepage`
- `freenode`
- `password`

1. On the command line, type the following command, replacing `property` with the name of the property, and `value` with the new value:

   ```
   npm profile set <prop> <value>
   ```

2. When prompted, provide your current password.

3. If you have enabled two-factor authentication on your account, when prompted, enter a one-time password.

For more details, see the `profile` [command line documentation](https://docs.npmjs.com/cli/profile).

#### Setting a password from the command line

1. On the command line, type the following command:

```
npm profile set password
```

2. When prompted, provide your current password.

3. When prompted, type a new password.

<Note>

To protect your account, when you reset your password from the command line, it must:

- be longer than 10 characters
- not contain part of your username
- not be in the "[Have I Been Pwned](https://haveibeenpwned.com/)" breach database

</Note>

#### Configuring two-factor authentication from the command line

Enabling two-factor authentication on your account helps protect against unauthorized access to your account and packages.

To enable, configure, and disable two-factor authentication from the command line, see "[Configuring two-factor authentication](/configuring-two-factor-authentication#configuring-2fa-from-the-command-line)".
